package org.xhy.circuitbreaker.alert;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xhy.circuitbreaker.MethodWrapper;

/**
 * @description:
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @Author: Xhy
 * @CreateTime: 2024-06-07 13:13
 */
public class DefaultAlert implements AlertService{

    private static final Logger logger = LoggerFactory.getLogger(DefaultAlert.class);

    @Override
    public void alert(MethodWrapper methodWrapper) {
        logger.warn("触发告警，无法进行重试，已重试次数:{},类名: {},方法名:{},",methodWrapper.getRetryCount(),methodWrapper.getO().getClass(),methodWrapper.getMethod().getName());
    }
}
